package com.demo.builder.improve;

// 建造者模式
public class Client {
    public static void main(String[] args) {
        CommonHouse commonHouse = new CommonHouse();

        HouseDirector houseDirector = new HouseDirector(commonHouse);

        House house = houseDirector.build();

        System.out.println("***********");

        HighHouse highHouse = new HighHouse();

        houseDirector.setHouseBuilder(highHouse);

        houseDirector.build();
    }
}
